
import IconFont from '@/components/IconFont';
import styles from './index.module.less';

export const CanSelectedSection = ({ isSelect, children, onClick, style = {}, hasPosition }) => {

  return (<ul className={`${styles.canSelectedWrapper} ${isSelect ? styles.isSelect : ''}`} onClick={onClick} style={{ ...style, paddingLeft: 0, marginBottom: 0 }}>
    {children}
    {hasPosition && <div style={{ position: 'absolute', right: '0px', bottom: '-5px' }}>
      <IconFont type="icona-juxing11766" />
    </div>}
  </ul>)
}